package com.gxy.learn.design.model.behaviour.responsibility;

import lombok.extern.slf4j.Slf4j;

/**
 * @description: 总经理 经理 （具体处理者 ）
 * @author: gaoxueyong
 * @Date: 2022/11/8 15:45
 */
@Slf4j
public class GeneralManager extends Handler{

    public GeneralManager() {
        super( Handler.NUM_THREE,Handler.NUM_SEVEN);
    }

    /**
     * 各级领导处理请假条
     *
     * @param leaveRequest
     * @return void
     * @Author gaoxueyong
     * @Date 3:47 下午 2022/11/8
     * @Param [leaveRequest]
     */
    @Override
    protected void handlerLeave(LeaveRequest leaveRequest) {
        log.info("{}请假{}天，请假内容：{}",leaveRequest.getName(),leaveRequest.getNum(),leaveRequest.getContent());
        log.info("总经理审批：同意！");
    }
}
